# 父类-动物
class Animal(object):
	def run(self):
		print('Animal is running...')

# 父类-尖叫
class MixlnBark(object):
	def bark(self):
		print('bark....')
		
# 方法：依赖于run方法
def run_twice(animal):
	animal.run()
	animal.run()

# 多重继承示例
class Dog(Animal,MixlnBark):
	def run(self):
		print('dog is running...')

dog = Dog()
dog.run()
dog.bark()

# 动态语言示例
class Timer(object):
	def run(self):
		print('start...')

run_twice(Dog())
run_twice(Timer())

